package com.things8.iot.baseIot.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.things8.iot.baseIot.entity.SysDevice;
import com.things8.iot.baseIot.entity.SysDeviceExample;
import com.things8.iot.baseIot.vo.DeviceVo1;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author yzh
 * @version 1.0
 * @date 2021/5/9 22:59
 */
@Mapper
public interface SysDeviceMapper {
    long countByExample(SysDeviceExample example);

    int deleteByExample(SysDeviceExample example);

    int deleteByPrimaryKey(Long id);

    int insert(SysDevice record);

    int insertOrUpdate(SysDevice record);

    int insertOrUpdateSelective(SysDevice record);

    int insertSelective(SysDevice record);

    List<SysDevice> selectByExample(SysDeviceExample example);

    SysDevice selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") SysDevice record, @Param("example") SysDeviceExample example);

    int updateByExample(@Param("record") SysDevice record, @Param("example") SysDeviceExample example);

    int updateByPrimaryKeySelective(SysDevice record);

    int updateByPrimaryKey(SysDevice record);

    int updateBatch(List<SysDevice> list);

    int updateBatchSelective(List<SysDevice> list);

    int batchInsert(@Param("list") List<SysDevice> list);

    IPage<DeviceVo1> findAllByNameLike(IPage<?> page, @Param("searchContent") String searchContent);
}